/*
 *  Ball.h
 *  CV_Game
 *
 *  Created by Daniel Brümmel on 21.05.11.
 *  Copyright 2011 __MyCompanyName__. All rights reserved.
 *
 */

#include <opencv/OpenCV.h>
#include <opencv/cv.h>


class Ball{
	float x,y;
	int movement;
public:
	Ball(int);
	void setXY(float, float);
	void setX(float);
	void setY(float);
	void setMovement(int);
	void move();
	float getX();
	float getY();
	void draw(IplImage *img);
	bool chkCollission(CvPoint, CvPoint);
};